// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   exchangeString.java

package include.nseer_cookie;

import java.io.PrintStream;
import java.util.StringTokenizer;

public class exchangeString
{

	public exchangeString()
	{
	}

	public String[] ex(String ss[], String code)
	{
		String s[] = new String[ss.length];
		for (int i = 0; i < ss.length; i++)
		{
			s[i] = "";
			for (StringTokenizer tokenTO = new StringTokenizer(ss[i], code); tokenTO.hasMoreTokens();)
			{
				String ss1 = tokenTO.nextToken();
				s[i] = (new StringBuilder(String.valueOf(s[i]))).append(ss1).toString();
			}

		}

		return s;
	}

	public static void main(String args[])
	{
		exchangeString ex = new exchangeString();
		String b[] = {
			"12,345", "1,2,34,6"
		};
		String a[] = ex.ex(b, ",");
		for (int i = 0; i < a.length; i++)
			System.out.println((new StringBuilder(String.valueOf(a[i]))).append("\n").toString());

	}
}
